package cn.tedu.mybatis.mapper;

import cn.tedu.mybatis.pojo.entity.Weibo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface WeiboMapper {
    @Insert("insert into weibo(content,created,user_id) values " +
            "(#{content},#{created},#{userId})")
    void insertWeibo(Weibo weibo);
    @Delete("delete from weibo where id=#{weiboid}")
    int deleteWeibo(Long weiboid);
}
